const array = [3, 3, 6, 1, 5, 6];
const set = new Set(array);
const newArray =  Array.from(set);

console.log(newArray);
